package com.yunche.iov.controller;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller("indexController")
@Scope("prototype")
public class IndexController {

	@RequestMapping(value = "/", method = RequestMethod.GET)
	public String toIndexPage() {
		return "index";
	}

	@RequestMapping(value = "/welcome", method = RequestMethod.GET)
	public String toWelComePage() {
		return "welcome";
	}
	
	@RequestMapping(value="/unicode",method=RequestMethod.GET)
	public String toUnicodePage() {
		return "unicode";
	}
	
	@RequestMapping(value = "/device", method = RequestMethod.GET)
	public String toDevicePage() {
		// TODO Auto generated method stub
		return "device/device";
	}
	
	@RequestMapping(value = "/device-add", method = RequestMethod.GET)
	public String toDeviceAddPage() {
		return "device/device-add";
	}
	
	@RequestMapping(value = "/device-edit", method = RequestMethod.GET)
	public String toDeviceEditPage() {
		// TODO Auto generated method stub
		return "device/device-edit";
	}
	
	@RequestMapping(value = "/vehicle", method = RequestMethod.GET)
	public String toVehiclePage() {
		// TODO Auto generated method stub
		return "vehicle/vehicle";
	}

}
